package cn.com.commons.code;

import java.io.Serializable;

/**
 * 
 * {@link Code}的抽象实现类
 * 
 * @param <C>
 * 
 * @author Microbun
 * @since 2012-2-9下午10:44:05
 * @version 1.0
 */
public abstract class AbstractCode implements Code, Serializable {

	private static final long serialVersionUID = -6890675062497287539L;

	protected String code;

	protected String descript;

	public AbstractCode(String code) {
		super();
		this.code = code;
	}

	public AbstractCode(String code, String descript) {
		super();
		this.code = code;
		this.descript = descript;
	}

	@Override
	public String code() {
		return code;
	}

	@Override
	public String descript() {
		return descript;
	}

}
